﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace ShotgunApp
{
    public static class startVars
    {
        public static int startAmmo = 1;
        public static int startLevel = 1;
    }

    public partial class single : PhoneApplicationPage
    {
        public single()
        {
            InitializeComponent();
        }

        private void start_Click(object sender, RoutedEventArgs e)
        {
            if (noob.IsChecked.HasValue && noob.IsChecked.Value == true)
            {
                startVars.startLevel = 1;
            }
            else if (normal.IsChecked.HasValue && normal.IsChecked.Value == true)
            {
                startVars.startLevel = 2;
            }
            else if (insane.IsChecked.HasValue && insane.IsChecked.Value == true)
            {
                startVars.startLevel = 3;
            }

            if (ammo1.IsChecked.HasValue && ammo1.IsChecked.Value == true)
            {
                startVars.startAmmo = 1;
            }
            else if (ammo2.IsChecked.HasValue && ammo2.IsChecked.Value == true)
            {
                startVars.startAmmo = 2;
            }
            else if (ammo5.IsChecked.HasValue && ammo5.IsChecked.Value == true)
            {
                startVars.startAmmo = 5;
            }

            NavigationService.Navigate(new Uri("/SingleGame.xaml", UriKind.Relative));
        }

    }
}